home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5088 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  56 lines

  1. Path: news.tte.vtt.fi!newsmaster
  2. From: Ali Lattunen <Ali.Lattunen@vtt.fi>
  3. Newsgroups: comp.lang.c++
  4. Subject: DESPERATE with Borland C++ 4.5 compiler
  5. Date: 2 Feb 1996 11:30:20 GMT
  6. Organization: VTT Information Technology
  7. Message-ID: <4esskc$8d8@hemuli.tte.vtt.fi>
  8. NNTP-Posting-Host: tte2053.tte.vtt.fi
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  13.  
  14.  
  15. Still the same problem:
  16.  
  17. Linker recognizes only one instance of template class non-inline member 
  18. functions. If I have two template class instancies of different user
  19. defined type as my class members, e.g.,
  20.  
  21. class MyClass {
  22. ..
  23.  TemplateClass<X> XMember;
  24.  TemplateClass<Y> YMember;
  25. };
  26.  
  27. member functions TemplateClass<Y>::XXX that are not inline are not 
  28. recognized by the linker.
  29.  
  30. If I declare them inline, the linker works fine even if the compiler 
  31. warns that functions cannot be expanded inline due to while-statements 
  32. inside the function body.
  33.  
  34. How is this done right? 
  35. How can I avoid using inline functions here?
  36.  
  37. Does Borland have any online user information service?
  38.  
  39. Thanks in advance:
  40.  
  41. ---------------------------------------------
  42.  Ali Lattunen
  43.  VTT Information Tecnology
  44.  Telecommunications
  45.  Otakaari 7 B, Espoo, P.O. Box 1202
  46.  FIN-02044 VTT
  47.  Finland
  48.  
  49.  phone: +358 0 456 6482
  50.  fax: +358 0 456 7013
  51.  email: Ali.Lattunen@vtt.fi
  52. ---------------------------------------------
  53.  
  54.  
  55.  
  56.